package com.learning.rpc_service.service;

import com.alibaba.fastjson.JSONObject;
import com.learning.rpc_common.request.RpcResponse;
import com.learning.rpc_common.sevice.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public RpcResponse sayHello(String word) {
        System.out.println("调用成功--参数 "+word);
        RpcResponse rpcResponse = new RpcResponse();
        rpcResponse.setCode(0);
        rpcResponse.setData(word);
        rpcResponse.setError_msg("success");
        return rpcResponse;
    }

}
